centered
Type
property
Summary
Specifies whether objects are drawn from the center to the edge, or from corner to corner.
Syntax
set the centered to {true | false}
Description
Use the centered property to change the way objects are drawn when they are created with the object's tool, and to change how objects are resized.
If the centered property is set to true, when the user creates an object by clicking and dragging with the appropriate tool, the first point clicked is the center of the object, and the user drags to an edge to complete the object.
If the centered is false, the first point clicked is a corner, and the user drags to the opposite corner to complete the object.
The centered also affects how objects are resized with the Pointer tool. If the centered is true, dragging a handle at the corner or side of an object resizes the object symmetrically, so its center remains in the same place. If the centered is false, dragging a corner or side moves only that corner or side.
Examples
set the centered to true
Related
function: tool
glossary: object, property, Pointer tool, handle
keyword: point
property: powerKeys, slices, multiple, gridSize
Compatibility and Support
Introduced
LiveCode 1.0
OS
mac
windows
linux
ios
android
Platforms
desktop
server
mobile